package com.tledu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * 章节
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("oc_course_section")
public class Section {
    //章节id
    @TableId(value = "section_id", type = IdType.AUTO)
    private Integer section_id;
    //课程id
    private Integer course_id;
    //章节名称
    private String section_name;
    //章节类型   0父章节  1子章节   默认0
    private String section_type;
    //章节视频 章节视频关联文件表
    private Integer section_video;
    //试看   0不可以    1可以    默认0
    private String can_try;
    //章节序列
    private Integer order_by;
    //父章节id
    private Integer parent_id;
    //备注
    private String remark;
    //删除标志
    private String del_flag;
    //创建人
    private String CREATED_BY;
    //创建时间
    private Date CREATED_TIME;
    //更新人
    private String UPDATED_BY;
    //更新时间
    private Date UPDATED_TIME;
    @TableField(exist = false)
    private List<Section> sonSections;
}
